import instance from '@/utils/request'

export function loginAPI(data) {
  return instance.post('/park/login', data)
}

export function getUserInfoAPI() {
  return instance.get('/park/user/profile')
}

export function getUserDetailAPI(id) {
  return instance.get('/park/sys/user/{id}', {
    params: {
      id
    }
  })
}

export function updatePassword(data) {
  return instance.put('/park/profile/updatePwd', data)
}

